package com.ce.pms.occupation.model;

// Generated 2008-12-24 13:41:51 by Hibernate Tools 3.2.0.b9

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.ce.pms.common.model.HmEmployeeDomain;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称: 整改跟进 关联数据表:OM_PERFECT_ITEM_TRACK
 *
 * @author yandawei
 * @CreateDate:2008-12-24
 */
@Entity
@Table(name = "OM_PERFECT_ITEM_TRACK")
public class PerfectItemTrackDO implements IDomainObject {

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "PERFECT_ITEM_TRACK_ID", unique = true, nullable = false)
	private Long keyword;

	/**
	 * 整改项目对象
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PERFECT_ITEM_REQUISITION_ID", nullable = false)
	private PerfectItemRequisitionDO perfectItemRequisition;

	/**
	 * 跟进人
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "EMPLOYEE_ID", nullable = false)
	private HmEmployeeDomain tracker;

	/**
	 * 跟进日期
	 */
	@Temporal(TemporalType.DATE)
	@Column(name = "TRACK_DATE", nullable = false, length = 19)
	private Date trackDate;

	/**
	 * 跟进情况描述
	 */
	@Column(name = "DESCRIPTION", length = 200)
	private String description;

	/**
	 * 完工日期
	 */
	@Temporal(TemporalType.DATE)
	@Column(name = "COMPLETE_DATE", length = 19)
	private Date completeDate;

	/**
	 * 该整改跟进的项目是否完工 1: 完工 0 : 未完工
	 */
	@Column(name = "COMPLETE_YN", nullable = false, length = 1)
	private String completeYn;

	public PerfectItemTrackDO() {
	}

	public PerfectItemTrackDO(Long keyword) {
		this.keyword = keyword;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public PerfectItemRequisitionDO getPerfectItemRequisition() {
		return perfectItemRequisition;
	}

	public void setPerfectItemRequisition(
			PerfectItemRequisitionDO perfectItemRequisition) {
		this.perfectItemRequisition = perfectItemRequisition;
	}

	public HmEmployeeDomain getTracker() {
		return tracker;
	}

	public void setTracker(HmEmployeeDomain tracker) {
		this.tracker = tracker;
	}

	public Date getTrackDate() {
		return this.trackDate;
	}

	public void setTrackDate(Date trackDate) {
		this.trackDate = trackDate;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCompleteDate() {
		return this.completeDate;
	}

	public void setCompleteDate(Date completeDate) {
		this.completeDate = completeDate;
	}

	public String getCompleteYn() {
		return this.completeYn;
	}

	public void setCompleteYn(String completeYn) {
		this.completeYn = completeYn;
	}

}
